package com.sambo.inspection.util;

public class StringUtil {

    public static String getSubName(String strName, int maxLen) {

        if (strName == null || strName.length() <= maxLen) {
            return strName;
        }

        return strName.substring(0, maxLen) + "...";
    }
}
